package com.qfjy.config.example1;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class EmailConfig {

    @Bean
   public Queue emailQueue(){

       //Queue(String name)
       return new Queue("emailQueue");
   }
}
